#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@Project ：python常用模块库 
@File ：tmp_receier.py
@IDE  ：PyCharm 
@Author ：李涵彬
@Date ：2025/2/20 上午12:19 
"""

from typing import Callable, Any

from network.receiver import Receiver


def recieve(protocol: str, host: str, port: int, callback: Callable[[bytes], Any]):
	receiver = Receiver(protocol, host, port, callback)
	receiver.start()


if __name__ == '__main__':
	recieve('tcp', '127.0.0.1', 8080, lambda data: print(data))
